/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aqu.persistencia.entity;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author angelquingaluisa
 */
@Entity
@Table(name = "seg_menu")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "SegMenu.findAll", query = "SELECT s FROM SegMenu s"),
    @NamedQuery(name = "SegMenu.findBySegCodigoMen", query = "SELECT s FROM SegMenu s WHERE s.segCodigoMen = :segCodigoMen"),
    @NamedQuery(name = "SegMenu.findBySegModuloMen", query = "SELECT s FROM SegMenu s WHERE s.segModuloMen = :segModuloMen"),
    @NamedQuery(name = "SegMenu.findBySegMenupadreMen", query = "SELECT s FROM SegMenu s WHERE s.segMenupadreMen = :segMenupadreMen"),
    @NamedQuery(name = "SegMenu.findBySegDescripcionMen", query = "SELECT s FROM SegMenu s WHERE s.segDescripcionMen = :segDescripcionMen"),
    @NamedQuery(name = "SegMenu.findBySegVentanaMen", query = "SELECT s FROM SegMenu s WHERE s.segVentanaMen = :segVentanaMen")})
public class SegMenu implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @NotNull
    @Column(name = "SEG_CODIGO_MEN")
    private String segCodigoMen;
    @Column(name = "SEG_MODULO_MEN")
    private String segModuloMen;
    @Column(name = "SEG_MENUPADRE_MEN")
    private String segMenupadreMen;
    @Size(max = 45)
    @Column(name = "SEG_DESCRIPCION_MEN")
    private String segDescripcionMen;
    @Size(max = 45)
    @Column(name = "SEG_VENTANA_MEN")
    private String segVentanaMen;
    @Size(max = 2)
    @Column(name = "SEG_TIPO_MEN")
    private String segTipoMen;

    public SegMenu() {
    }

    public String getSegCodigoMen() {
        return segCodigoMen;
    }

    public void setSegCodigoMen(String segCodigoMen) {
        this.segCodigoMen = segCodigoMen;
    }

    public String getSegMenupadreMen() {
        return segMenupadreMen;
    }

    public void setSegMenupadreMen(String segMenupadreMen) {
        this.segMenupadreMen = segMenupadreMen;
    }

    public String getSegModuloMen() {
        return segModuloMen;
    }

    public void setSegModuloMen(String segModuloMen) {
        this.segModuloMen = segModuloMen;
    }

    public String getSegDescripcionMen() {
        return segDescripcionMen;
    }

    public void setSegDescripcionMen(String segDescripcionMen) {
        this.segDescripcionMen = segDescripcionMen;
    }

    public String getSegVentanaMen() {
        return segVentanaMen;
    }

    public void setSegVentanaMen(String segVentanaMen) {
        this.segVentanaMen = segVentanaMen;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (segCodigoMen != null ? segCodigoMen.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SegMenu)) {
            return false;
        }
        SegMenu other = (SegMenu) object;
        if ((this.segCodigoMen == null && other.segCodigoMen != null) || (this.segCodigoMen != null && !this.segCodigoMen.equals(other.segCodigoMen))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "clases.SegMenu[ segCodigoMen=" + segCodigoMen + " ]";
    }

    public String getSegTipoMen() {
        return segTipoMen;
    }

    public void setSegTipoMen(String segTipoMen) {
        this.segTipoMen = segTipoMen;
    }
}
